package com.landun.market.pojo.model;


import com.landun.market.pojo.enums.StateCode;
import lombok.*;

/**
 * @author jiang.chuan
 * @date 2018-04-08
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class Category extends BaseModel {
    private static final long serialVersionUID = 22779891189548473L;

    private String name;
    private Integer parentId;
    private Integer type;
    private Integer code;
    private Integer rank;
    private Integer level;
    private StateCode state;

    @Builder
    public Category(String name, Integer parentId, Integer type, Integer code,
                    Integer rank, Integer level, StateCode state) {
        this.name = name;
        this.parentId = parentId;
        this.type = type;
        this.code = code;
        this.rank = rank;
        this.level = level;
        this.state = state;
    }
}
